<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
	<title>用户登陆</title>
<head th:include="layout/head :: login"></head>

<body>
	<div class="signin">
		<div class="signin-head">
			<img src="images/login/liubin.jpg" alt="" class="img-circle"></img>
		</div>
		<form th:action="@{/loginPost}" method="post" class="form-signin" role="form" onsubmit="return subLogin()">
			<input type="text" id="username" name="username" class="form-control" placeholder="用户名" /> 
			<input type="password" id="password" name="password" class="form-control" placeholder="密码" /> 
			<div th:if="${msg == '1'}">用户名或密码错</div>
			<input type="submit" class="btn btn-lg btn-warning btn-block" value="登录" />
		</form>
	</div>
</body>
</html>